String basePath = ${module.name ? uncap_first}Dao.getParentNodePath(${module.name ? uncap_first}.getTableID());
        Integer maxNodeValue = 0;
        synchronized(this){
            maxNodeValue = ${module.name ? uncap_first}Dao.getMaxNodeValue();
        }
        maxNodeValue = maxNodeValue == null?1:maxNodeValue + 1;
        ${module.name ? uncap_first}.setTreeValue(maxNodeValue);
        basePath = basePath == null ? "" : basePath;
        ${module.name ? uncap_first}.setTreePath(PathUtils.appendPath(basePath, "" + maxNodeValue) + "/");